package owg.util;

import java.io.FileNotFoundException;

public class ClassPathStream extends NamedInputStream {
    public ClassPathStream(Class<?> root, String path) throws FileNotFoundException {
	super(root.getResourceAsStream((path=path.startsWith("/")?path:"/"+path)), path);
	if(input == null)
	    throw new FileNotFoundException("The file "+path+" does not exist on the classpath!");
    }
}
